<template>
  <div><a :href="api.logout">Click to logout...</a></div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "Logout",
  computed: {
    ...mapGetters(["api"])
  },
  mounted() {
    window.location = this.api.logout;
  }
};
</script>
